//
//  DisplayCell.h
//  CoreDataDemo
//
//  Created by macbook on 12/26/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#define DISPLAY_CELL_HEIGH_IPAD         88
#define DISPLAY_CELL_HEIGH_IPHONE       55
#define DISPLAY_CELL_DEFAULT_IPAD       60
#define DISPLAY_CELL_DEFAULT_IPHONE     44

@class DisplayCellView;
@class Song;
@class MySong;
@class LyricViewerItem;

@protocol KaraokeCellDelegate <NSObject>
@required
- (void) tableView:(UITableView *) tableView didSelectOnMenuItemAtIndexPath:(NSIndexPath *) indexPath;
- (void) tableView:(UITableView *) tableView didSelectOnFunctionAtIndexPath:(NSIndexPath *) indexPath;
@end

@interface DisplayCellView : UITableViewCell
{
    UILabel *lbSongName;
    UILabel *lbLyrics;
    UILabel *lbSongCode;
}

@property (weak, nonatomic) IBOutlet UIButton *btnSelect;
@property (weak, nonatomic) IBOutlet UIButton *btnMenu;
@property (nonatomic, retain) IBOutlet UILabel *lbSongName;
@property (nonatomic, retain) IBOutlet UILabel *lbLyrics;
@property (weak, nonatomic) IBOutlet UILabel *lbAuthor;
@property (nonatomic, retain) IBOutlet UILabel *lbSongCode;
@property (weak, nonatomic) IBOutlet UIImageView *imgFavourite;
@property (weak, nonatomic) IBOutlet UIImageView *imgRemix;
@property (weak, nonatomic) IBOutlet UIImageView *imgSinger;

@property (strong, nonatomic) NSIndexPath * indexPath;
@property (nonatomic, assign) id<KaraokeCellDelegate> delegate;
@property (nonatomic, weak) UITableView* tableView; 

- (DisplayCellView *) configureCellForSongObject: (Song *)song atIndexPath:(NSIndexPath *)_indexPath withSearchString: (NSString *) search andShowFree:(BOOL)isFree  inPlaylist:(BOOL) seleted;
- (DisplayCellView *) configureCellForSongObjectInPlaylist: (Song *)song atIndexPath:(NSIndexPath *)_indexPath withSearchString: (NSString *) search andShowFree:(BOOL)isFree  inPlaylist:(BOOL) seleted;
@end
